import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

// Piana
import store, { registerStore } from '@/stores'

// Element
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'


// svg图标
import 'virtual:svg-icons-register'

// 指令
import directive from '@/directive'

// 全局组件
import components from '@/components/index'

// 全局方法
import { setupGlobalProperties } from "@/utils/setup"

// 全局样式
import '@/assets/styles/index.less';

// 挂载
const app = createApp(App)
directive(app)
setupGlobalProperties(app)
app.use(router).use(store).use(ElementPlus,{locale:zhCn}).use(components).mount('#app')
registerStore()
